},
getInitialResultSet: function(terms) {
- this.searchSystem.pushResults(this, this._appSys.initial_search(terms));
+ this.searchSystem.setResults(this, this._appSys.initial_search(terms));
},
getSubsearchResultSet: function(previousResults, terms) {
- this.searchSystem.pushResults(this, this._appSys.subsearch(previousResults, terms));
+ this.searchSystem.setResults(this, this._appSys.subsearch(previousResults, terms));
},
activateResult: function(app) {
_getResultsFinished: function(results, error) {
if (error)
return;
- this.searchSystem.pushResults(this, results[0]);
+ this.searchSystem.setResults(this, results[0]);
},
getInitialResultSet: function(terms) {
this._cancellable);
} catch(e) {
log('Error calling GetInitialResultSet for provider %s: %s'.format(this.id, e.toString()));
- this.searchSystem.pushResults(this, []);
+ this.searchSystem.setResults(this, []);
}
},
this._cancellable);
} catch(e) {
log('Error calling GetSubsearchResultSet for provider %s: %s'.format(this.id, e.toString()));
- this.searchSystem.pushResults(this, []);
+ this.searchSystem.setResults(this, []);
}
},
this._previousResults = [];
},
- pushResults: function(provider, results) {
+ setResults: function(provider, results) {
let i = this._providers.indexOf(provider);
if (i == -1)
return;
getInitialResultSet: function(terms) {
if (terms.join(' ') == MAGIC_FISH_KEY) {
- this.searchSystem.pushResults(this, [ FISH_NAME ]);
+ this.searchSystem.setResults(this, [ FISH_NAME ]);
} else {
- this.searchSystem.pushResults(this, []);
+ this.searchSystem.setResults(this, []);
}
},